module ActiveScaffold
  module Helpers
    # A bunch of helper methods to produce the common view ids
    module Ids

      def customize_form_id
        "#{controller_id}-customize-form"
      end

      def nested_id(options = {})
        options[:action] = :nested
        element_row_id(options)
      end

      def active_scaffold_tools_list_columns
        @list_columns || active_scaffold_config.list.columns.collect
      end

    end
  end
end